<!-- Main Navigation -->
<table id="header" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td id="header_left">&nbsp;</td>
		<td id="header_center" style="text-align: center;">
			<div style="float: left; margin-right: 10px">
				<table cellpadding="0" cellspacing="0" border="0" <?= (($this->isHomepage) ? 'class="tab"' : '') ?>>
					<tr>
						<td <?= (($this->isHomepage) ? 'class="tab_left"' : '') ?>>&nbsp;</td>
						<td style="padding: 5px 4px 0 4px;" valign="top"><a class="tab_link" href="<?= $this->baseUrl ?>">Trang chủ</a></td>
						<td <?= (($this->isHomepage) ? 'class="tab_right"' : '') ?>>&nbsp;</td>
					</tr>
				</table>
			</div>
			<? foreach ($this->sections as $section ): ?>
			<div style="float: left; margin-right: 10px">
			<table cellpadding="0" cellspacing="0" border="0" <?= (($this->section != null) && ($this->section->sec_id == $section->sec_id) ? 'class="tab"' : '') ?>>
					<tr>
						<td <?= (($this->section != null) && ($this->section->sec_id == $section->sec_id) ? 'class="tab_left"' : '') ?>>&nbsp;</td>
						<td style="padding: 5px 4px 0 4px;" valign="top"><a class="tab_link" href="<?= $this->baseUrl ?>/section/index/id/<?= $section->sec_id ?>"><?= $section->sec_name ?></a></td>
						<td <?= (($this->section != null) && ($this->section->sec_id == $section->sec_id) ? 'class="tab_right"' : '') ?>>&nbsp;</td>
					</tr>
				</table>
			</div>
			<? endforeach; ?>
		</td>
		<td id="header_right">&nbsp;</td>
	</tr>
</table>
<div style="top: 125px; padding: 0 0 0 6px; position: absolute; z-index: 1000; !important">
	<? if ($this->isHomepage): ?>
		<?php echo $this->render('banner_new_commods.phtml', null, true); ?>
	<? else: ?>
		<?
			$i=0; 
			foreach ($this->categories as $category ): 
		?>
			<? if ($i!= 0) echo "&nbsp;|&nbsp;"; ?><a class="tab_link2" href="#subtab"><?= $category->cat_name; ?></a>
		<?
			$i++; 
			endforeach; 
		?>		
	<? endif; ?>
</div>